package com.baizhi.demon;

import org.hibernate.Session;
import org.hibernate.Transaction;
import org.junit.Test;

import com.baizhi.demo1.HibernateUtil;

public class DistributeIdGeneratorTest {
	@Test
	public void test1() {
		Session session = HibernateUtil.getCurrentSession();
		Product p = new Product("iphone se", 10000.0);
		Transaction tx = session.beginTransaction();
		session.save(p);
		tx.commit();
	}
}
